Optimal. Leaf size=49 \[ -\frac {\tan ^{-1}(a x)^2}{2 a^3 c}+\frac {x \tan ^{-1}(a x)}{a^2 c}-\frac {\log \left (a^2 x^2+1\right )}{2 a^3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4916, 4846, 260, 4884} \[ -\frac {\log \left (a^2 x^2+1\right )}{2 a^3 c}-\frac {\tan ^{-1}(a x)^2}{2 a^3 c}+\frac {x \tan ^{-1}(a x)}{a^2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 4846
Rule 4884
Rule 4916
Rubi steps
\begin {align*} \int \frac {x^2 \tan ^{-1}(a x)}{c+a^2 c x^2} \, dx &=-\frac {\int \frac {\tan ^{-1}(a x)}{c+a^2 c x^2} \, dx}{a^2}+\frac {\int \tan ^{-1}(a x) \, dx}{a^2 c}\\ &=\frac {x \tan ^{-1}(a x)}{a^2 c}-\frac {\tan ^{-1}(a x)^2}{2 a^3 c}-\frac {\int \frac {x}{1+a^2 x^2} \, dx}{a c}\\ &=\frac {x \tan ^{-1}(a x)}{a^2 c}-\frac {\tan ^{-1}(a x)^2}{2 a^3 c}-\frac {\log \left (1+a^2 x^2\right )}{2 a^3 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 49, normalized size = 1.00 \[ -\frac {\tan ^{-1}(a x)^2}{2 a^3 c}+\frac {x \tan ^{-1}(a x)}{a^2 c}-\frac {\log \left (a^2 x^2+1\right )}{2 a^3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 37, normalized size = 0.76 \[ \frac {2 \, a x \arctan \left (a x\right ) - \arctan \left (a x\right )^{2} - \log \left (a^{2} x^{2} + 1\right )}{2 \, a^{3} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 46, normalized size = 0.94 \[ \frac {x \arctan \left (a x \right )}{a^{2} c}-\frac {\arctan \left (a x \right )^{2}}{2 a^{3} c}-\frac {\ln \left (a^{2} x^{2}+1\right )}{2 a^{3} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 54, normalized size = 1.10 \[ {\left (\frac {x}{a^{2} c} - \frac {\arctan \left (a x\right )}{a^{3} c}\right )} \arctan \left (a x\right ) + \frac {\arctan \left (a x\right )^{2} - \log \left (a^{2} x^{2} + 1\right )}{2 \, a^{3} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 33, normalized size = 0.67 \[ -\frac {{\mathrm {atan}\left (a\,x\right )}^2-2\,a\,x\,\mathrm {atan}\left (a\,x\right )+\ln \left (a^2\,x^2+1\right )}{2\,a^3\,c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.05, size = 75, normalized size = 1.53 \[ \begin {cases} \frac {x \operatorname {atan}{\left (a x \right )}}{a^{2} c} - \frac {\log {\left (x^{2} + \frac {1}{a^{2}} \right )}}{2 a^{3} c} - \frac {\operatorname {atan}^{2}{\left (a x \right )}}{2 a^{3} c} & \text {for}\: c \neq 0 \\\tilde {\infty } \left (\frac {x^{3} \operatorname {atan}{\left (a x \right )}}{3} - \frac {x^{2}}{6 a} + \frac {\log {\left (a^{2} x^{2} + 1 \right )}}{6 a^{3}}\right ) & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________